<script src="../../../../build/seed.js"></script>
<script src="../../../../build/ua.js"></script>
<script src="../../../../build/dom.js"></script>
<script src="../../../../build/event.js"></script>
<script src="../../../../build/anim.js"></script>
<script src="../../../../build/node.js"></script>
<script src="../../../../build/json.js"></script>
<script src="../../base.js"></script>
<script src="../../xhrobject.js"></script>
<script src="../../iframe-upload.js"></script>
<script src="../../form-serializer.js"></script>
<script src="../../form.js"></script>
<script src="../../jsonp.js"></script>
<script src="../../script.js"></script>
<script src="../../xhr.js"></script>
<script src="../../xdr.js"></script>
<script src="../../../ajax.js"></script>
<script>
    KISSY.use("ajax", function(S, io) {
        S.ready(function(S) {
            io({
                headers:{
                    // cross domain 设置 header ie 无效
                    // yiminghe:1
                },
                dataType:'json',
                url:'http://yiminghe.daily.taobao.net/' +
                        'kissy_git/kissy/src/ajax/tests/xdr/xdr.php',
                xhrFields:{
                    // Cannot use wildcard in Access-Control-Allow-Origin
                    // when credentials flag is true.
                    // firefox , chrome 携带 cookie
                    withCredentials:true
                },
                xdr:{
                    // 强制用 flash，ie 可携带cookie
                    use:"flash"
                },
                data:{
                    action:"x"
                },
                success:function(d, s, r) {
                    S.log("x : " + d.x);
                    S.log(r.getResponseHeader("X-Powered-By"));
                }
            });

            io({
                headers:{
                    // cross domain 设置 header ie 无效
                    // yiminghe:1
                },
                dataType:'json',
                url:'http://yiminghe.daily.taobao.net/' +
                        'kissy_git/kissy/src/ajax/tests/xdr/xdr.php',
                xhrFields:{
                    // Cannot use wildcard in Access-Control-Allow-Origin
                    // when credentials flag is true.
                    // withCredentials:true
                },
                data:{
                    action:"y"
                },
                success:function(d, s, r) {
                    S.log("y : " + d.y);
                    S.log(r.getResponseHeader("X-Powered-By"));
                }
            });
        });
    })
</script>